package com.beta.service.impl;

import com.beta.service.IDateTimeService;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by vector on 2016/11/21.
 */
@Service
public class DateTimeService implements IDateTimeService {

    @Override
    public Date toDbDate() {
        return toDbDate(new Date());
    }

    @Override
    public Date toDbDate(Date localDate) {
        return localDate;
    }

    @Override
    public Date fromDbDate(Date dbDate) {
        return dbDate;
    }

}
